Xbasic

FORM.CREATE Function

Syntax

as P = Form.Create(C table_or_set,C format[,P style])

Arguments

P

A pointer to the form that you have created.

table_or_set

The name of a table or set.

format

Default text that appears on the form.

style

Optional. Default = "Alpha Anywhere Default". A pointer to a stylesheet. Use A5_STYLESHEET_ENUM()to get a list of styles.

Description

The FORM.CREATE() method creates an on-the-fly form layout for the selected table or set and then displays the form in View mode.

Example

dim ptr as P
dim ssh as P
dim ssl as C
ssl = a5_stylesheet_enum()
? ssl
= Alpha Anywhere Default
Alpha Anywhere Drop Shadows
Alpha Anywhere Stamped Metal
Alphasports
Avant Garden
Blue Concrete
Blue Contrast
...
? a5_ss_get(ssh, "Avant Garden")
= .T.
ptr = form.create("customer", "dialog", ssh)

Limitations

Desktop applications only.

See Also